package com.forezp.serviceribbon.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

/**
 * @author yudashuai
 * @date 2021/07/23  16:40
 **/
@Service
public class RestRibbonService {

    @Autowired
    RestTemplate restTemplate;

    public String hiService(String name){
       return  restTemplate.getForObject("http://EUREKA-PROVIDER/hi?name=feign-"+name,String.class);
    }


}
